<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MagTwin: MagGraphicsView Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">MagTwin<span id="projectnumber">&#160;V0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_mag_graphics_view-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">MagGraphicsView Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>图形视图类  
 <a href="#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_mag_graphics_view_8h_source.html">MagGraphicsView.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MagGraphicsView:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_mag_graphics_view.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-slots" name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a9efcab8c2747320e9c469cc77acdf11a" id="r_a9efcab8c2747320e9c469cc77acdf11a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9efcab8c2747320e9c469cc77acdf11a">showMesh</a> (const <a class="el" href="class_g_mesh.html">GMesh</a> &amp;mesh)</td></tr>
<tr class="memdesc:a9efcab8c2747320e9c469cc77acdf11a"><td class="mdescLeft">&#160;</td><td class="mdescRight">显示网格  <br /></td></tr>
<tr class="separator:a9efcab8c2747320e9c469cc77acdf11a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06c0fbf0bb356cb2fdaa7e1af0e6b025" id="r_a06c0fbf0bb356cb2fdaa7e1af0e6b025"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a06c0fbf0bb356cb2fdaa7e1af0e6b025">resizeGraphics</a> (<a class="el" href="class_mag_graphics_view.html">MagGraphicsView</a> *ShowGraphics)</td></tr>
<tr class="memdesc:a06c0fbf0bb356cb2fdaa7e1af0e6b025"><td class="mdescLeft">&#160;</td><td class="mdescRight">将显示的图形缩放到合适大小  <br /></td></tr>
<tr class="separator:a06c0fbf0bb356cb2fdaa7e1af0e6b025"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9175a33e8e2739d3e5e632c6c2715da7" id="r_a9175a33e8e2739d3e5e632c6c2715da7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9175a33e8e2739d3e5e632c6c2715da7">MagGraphicsView</a> (QWidget *parent=nullptr)</td></tr>
<tr class="memdesc:a9175a33e8e2739d3e5e632c6c2715da7"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数  <br /></td></tr>
<tr class="separator:a9175a33e8e2739d3e5e632c6c2715da7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a026b98b72cf9edb611cc998d529587d8" id="r_a026b98b72cf9edb611cc998d529587d8"><td class="memItemLeft" align="right" valign="top"><a id="a026b98b72cf9edb611cc998d529587d8" name="a026b98b72cf9edb611cc998d529587d8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>~MagGraphicsView</b> ()</td></tr>
<tr class="memdesc:a026b98b72cf9edb611cc998d529587d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构函数 <br /></td></tr>
<tr class="separator:a026b98b72cf9edb611cc998d529587d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d0f9f9a0d29d1fe8ec9645b38f9721d" id="r_a3d0f9f9a0d29d1fe8ec9645b38f9721d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a3d0f9f9a0d29d1fe8ec9645b38f9721d">addPoint</a> (QList&lt; QPointF &gt; Points)</td></tr>
<tr class="memdesc:a3d0f9f9a0d29d1fe8ec9645b38f9721d"><td class="mdescLeft">&#160;</td><td class="mdescRight">向场景中添加点  <br /></td></tr>
<tr class="separator:a3d0f9f9a0d29d1fe8ec9645b38f9721d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff7c12efbb55fcda4f29e932ff891ce0" id="r_aff7c12efbb55fcda4f29e932ff891ce0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aff7c12efbb55fcda4f29e932ff891ce0">addLine</a> (QList&lt; QPointF &gt; Points)</td></tr>
<tr class="memdesc:aff7c12efbb55fcda4f29e932ff891ce0"><td class="mdescLeft">&#160;</td><td class="mdescRight">向场景中添加线  <br /></td></tr>
<tr class="separator:aff7c12efbb55fcda4f29e932ff891ce0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa565f78d8f8e2897335665b2536032f6" id="r_aa565f78d8f8e2897335665b2536032f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa565f78d8f8e2897335665b2536032f6">addRriangle</a> (QList&lt; QPointF &gt; Points)</td></tr>
<tr class="memdesc:aa565f78d8f8e2897335665b2536032f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">向场景中添加三角形  <br /></td></tr>
<tr class="separator:aa565f78d8f8e2897335665b2536032f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79d8615756b7c80bd17ce15f68babe67" id="r_a79d8615756b7c80bd17ce15f68babe67"><td class="memItemLeft" align="right" valign="top"><a id="a79d8615756b7c80bd17ce15f68babe67" name="a79d8615756b7c80bd17ce15f68babe67"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clearCanvas</b> ()</td></tr>
<tr class="memdesc:a79d8615756b7c80bd17ce15f68babe67"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空场景 <br /></td></tr>
<tr class="separator:a79d8615756b7c80bd17ce15f68babe67"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a5522102a95e0a3b8d08bc9dccce5063e" id="r_a5522102a95e0a3b8d08bc9dccce5063e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5522102a95e0a3b8d08bc9dccce5063e">wheelEvent</a> (QWheelEvent *event) override</td></tr>
<tr class="memdesc:a5522102a95e0a3b8d08bc9dccce5063e"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写鼠标滚轮事件处理函数  <br /></td></tr>
<tr class="separator:a5522102a95e0a3b8d08bc9dccce5063e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a880c0681111672605333b1c15b567b1c" id="r_a880c0681111672605333b1c15b567b1c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a880c0681111672605333b1c15b567b1c">mousePressEvent</a> (QMouseEvent *event) override</td></tr>
<tr class="memdesc:a880c0681111672605333b1c15b567b1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写鼠标按下事件处理函数  <br /></td></tr>
<tr class="separator:a880c0681111672605333b1c15b567b1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a795ba880577b0ed3d11266f75734c73c" id="r_a795ba880577b0ed3d11266f75734c73c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a795ba880577b0ed3d11266f75734c73c">mouseMoveEvent</a> (QMouseEvent *event) override</td></tr>
<tr class="memdesc:a795ba880577b0ed3d11266f75734c73c"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写鼠标移动事件处理函数  <br /></td></tr>
<tr class="separator:a795ba880577b0ed3d11266f75734c73c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a583b7e56e1f37c7f372a0b47a0b21ef0" id="r_a583b7e56e1f37c7f372a0b47a0b21ef0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a583b7e56e1f37c7f372a0b47a0b21ef0">mouseReleaseEvent</a> (QMouseEvent *event) override</td></tr>
<tr class="memdesc:a583b7e56e1f37c7f372a0b47a0b21ef0"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写鼠标释放事件处理函数  <br /></td></tr>
<tr class="separator:a583b7e56e1f37c7f372a0b47a0b21ef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8eb070a34aba2fc4de03130557f46be" id="r_aa8eb070a34aba2fc4de03130557f46be"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aa8eb070a34aba2fc4de03130557f46be">eventFilter</a> (QObject *obj, QEvent *event) override</td></tr>
<tr class="memdesc:aa8eb070a34aba2fc4de03130557f46be"><td class="mdescLeft">&#160;</td><td class="mdescRight">重写事件过滤器函数  <br /></td></tr>
<tr class="separator:aa8eb070a34aba2fc4de03130557f46be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>图形视图类 </p>
<p>继承自QGraphicsView类，实现了鼠标滚轮事件、鼠标按下、移动、释放事件的处理函数，以及鼠标坐标标签的显示。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9175a33e8e2739d3e5e632c6c2715da7" name="a9175a33e8e2739d3e5e632c6c2715da7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9175a33e8e2739d3e5e632c6c2715da7">&#9670;&#160;</a></span>MagGraphicsView()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MagGraphicsView::MagGraphicsView </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>parent</em><span class="paramdefsep"> = </span><span class="paramdefval">nullptr</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aff7c12efbb55fcda4f29e932ff891ce0" name="aff7c12efbb55fcda4f29e932ff891ce0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff7c12efbb55fcda4f29e932ff891ce0">&#9670;&#160;</a></span>addLine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::addLine </td>
          <td>(</td>
          <td class="paramtype">QList&lt; QPointF &gt;</td>          <td class="paramname"><span class="paramname"><em>Points</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向场景中添加线 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Points</td><td>线端点坐标 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3d0f9f9a0d29d1fe8ec9645b38f9721d" name="a3d0f9f9a0d29d1fe8ec9645b38f9721d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d0f9f9a0d29d1fe8ec9645b38f9721d">&#9670;&#160;</a></span>addPoint()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::addPoint </td>
          <td>(</td>
          <td class="paramtype">QList&lt; QPointF &gt;</td>          <td class="paramname"><span class="paramname"><em>Points</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向场景中添加点 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>点坐标 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa565f78d8f8e2897335665b2536032f6" name="aa565f78d8f8e2897335665b2536032f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa565f78d8f8e2897335665b2536032f6">&#9670;&#160;</a></span>addRriangle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::addRriangle </td>
          <td>(</td>
          <td class="paramtype">QList&lt; QPointF &gt;</td>          <td class="paramname"><span class="paramname"><em>Points</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>向场景中添加三角形 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Points</td><td>三角形三个顶点坐标 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa8eb070a34aba2fc4de03130557f46be" name="aa8eb070a34aba2fc4de03130557f46be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8eb070a34aba2fc4de03130557f46be">&#9670;&#160;</a></span>eventFilter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool MagGraphicsView::eventFilter </td>
          <td>(</td>
          <td class="paramtype">QObject *</td>          <td class="paramname"><span class="paramname"><em>obj</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QEvent *</td>          <td class="paramname"><span class="paramname"><em>event</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写事件过滤器函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td>事件对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a795ba880577b0ed3d11266f75734c73c" name="a795ba880577b0ed3d11266f75734c73c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a795ba880577b0ed3d11266f75734c73c">&#9670;&#160;</a></span>mouseMoveEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::mouseMoveEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *</td>          <td class="paramname"><span class="paramname"><em>event</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写鼠标移动事件处理函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>事件对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a880c0681111672605333b1c15b567b1c" name="a880c0681111672605333b1c15b567b1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a880c0681111672605333b1c15b567b1c">&#9670;&#160;</a></span>mousePressEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::mousePressEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *</td>          <td class="paramname"><span class="paramname"><em>event</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写鼠标按下事件处理函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>事件对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a583b7e56e1f37c7f372a0b47a0b21ef0" name="a583b7e56e1f37c7f372a0b47a0b21ef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a583b7e56e1f37c7f372a0b47a0b21ef0">&#9670;&#160;</a></span>mouseReleaseEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::mouseReleaseEvent </td>
          <td>(</td>
          <td class="paramtype">QMouseEvent *</td>          <td class="paramname"><span class="paramname"><em>event</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写鼠标释放事件处理函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>事件对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a06c0fbf0bb356cb2fdaa7e1af0e6b025" name="a06c0fbf0bb356cb2fdaa7e1af0e6b025"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06c0fbf0bb356cb2fdaa7e1af0e6b025">&#9670;&#160;</a></span>resizeGraphics</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::resizeGraphics </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_mag_graphics_view.html">MagGraphicsView</a> *</td>          <td class="paramname"><span class="paramname"><em>ShowGraphics</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将显示的图形缩放到合适大小 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ShowGraphics</td><td>显示的图形对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9efcab8c2747320e9c469cc77acdf11a" name="a9efcab8c2747320e9c469cc77acdf11a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9efcab8c2747320e9c469cc77acdf11a">&#9670;&#160;</a></span>showMesh</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::showMesh </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_g_mesh.html">GMesh</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>mesh</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>显示网格 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mesh</td><td>网格对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5522102a95e0a3b8d08bc9dccce5063e" name="a5522102a95e0a3b8d08bc9dccce5063e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5522102a95e0a3b8d08bc9dccce5063e">&#9670;&#160;</a></span>wheelEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MagGraphicsView::wheelEvent </td>
          <td>(</td>
          <td class="paramtype">QWheelEvent *</td>          <td class="paramname"><span class="paramname"><em>event</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>重写鼠标滚轮事件处理函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>事件对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>magtwin/include/<a class="el" href="_mag_graphics_view_8h_source.html">MagGraphicsView.h</a></li>
<li>magtwin/<b>MagGraphicsView.cpp</b></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
